
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module runtime.paths</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="runtime.html"><font color="#ffffff">runtime</font></a>.paths</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/john/bin/game-baker/trunk/runtime/paths.py">/home/john/bin/game-baker/trunk/runtime/paths.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="runtime.paths.html#bezier_curve">bezier_curve</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="runtime.paths.html#linear_bezier">linear_bezier</a>
</font></dt></dl>
</dd>
</dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="bezier_curve">class <strong>bezier_curve</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="bezier_curve-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="bezier_curve-add_point"><strong>add_point</strong></a>(self, x, y)</dt><dd><tt>Adds&nbsp;a&nbsp;point</tt></dd></dl>

<dl><dt><a name="bezier_curve-get_position"><strong>get_position</strong></a>(self, t)</dt><dd><tt>Gets&nbsp;unparametrisized&nbsp;position&nbsp;from&nbsp;parameter&nbsp;t</tt></dd></dl>

<dl><dt><a name="bezier_curve-length"><strong>length</strong></a>(self)</dt><dd><tt>Returns&nbsp;actual&nbsp;(unparametrisized)&nbsp;length&nbsp;of&nbsp;curve</tt></dd></dl>

<dl><dt><a name="bezier_curve-set_point"><strong>set_point</strong></a>(self, point, x, y)</dt></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="linear_bezier">class <strong>linear_bezier</strong></a>(<a href="runtime.paths.html#bezier_curve">bezier_curve</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Simple&nbsp;Linear&nbsp;Bezier&nbsp;Curves&nbsp;-&nbsp;i.e.&nbsp;lines&nbsp;between&nbsp;points<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="runtime.paths.html#linear_bezier">linear_bezier</a></dd>
<dd><a href="runtime.paths.html#bezier_curve">bezier_curve</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="linear_bezier-add_point"><strong>add_point</strong></a>(self, x, y)</dt></dl>

<dl><dt><a name="linear_bezier-get_position"><strong>get_position</strong></a>(self, t<font color="#909090">=0.0</font>)</dt></dl>

<hr>
Methods inherited from <a href="runtime.paths.html#bezier_curve">bezier_curve</a>:<br>
<dl><dt><a name="linear_bezier-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="linear_bezier-length"><strong>length</strong></a>(self)</dt><dd><tt>Returns&nbsp;actual&nbsp;(unparametrisized)&nbsp;length&nbsp;of&nbsp;curve</tt></dd></dl>

<dl><dt><a name="linear_bezier-set_point"><strong>set_point</strong></a>(self, point, x, y)</dt></dl>

<hr>
Data descriptors inherited from <a href="runtime.paths.html#bezier_curve">bezier_curve</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-sqrt"><strong>sqrt</strong></a>(...)</dt><dd><tt><a href="#-sqrt">sqrt</a>(x)<br>
&nbsp;<br>
Return&nbsp;the&nbsp;square&nbsp;root&nbsp;of&nbsp;x.</tt></dd></dl>
</td></tr></table>
</body></html>